package com.bj.dz.controller;

import javax.annotation.Resource;

import com.bj.dz.entity.RoleMenu;
import com.bj.dz.service.RoleMenuService;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/roleMenu")
public class RoleMenuController {
	@Resource
	private RoleMenuService rms;

	/**
	 * 保存角色对应的菜单
	 */
	@RequestMapping("/saveRoleMenus.do")
	public boolean saveRoleMenus(Integer rid,String menuNums){
		RoleMenu rm=new RoleMenu();
		rm.setMenuNum(menuNums);
		rm.setRid(rid);
		boolean flag=rms.saveRoleMenus(rm);
		return flag;
	}
	
	
}
